<?php
return array(
	'cascade' => array(
		'profile','cate'
	),
	'createSuccess' => '添加成功，商品需经过待管理员审核后才可以上架。',
	'formView' => array(
		'fields' => array(
			'baseInfo' => array(
				'id' => false,
				'type_id' => false,
				'listing_time' => false,
				'short_title' => false,
				'status' => false,
				'object_type' => false,
				'class_id' => false,
				'listing_status' => false,
				'create_time' => false,
				'update_time' => false,
				'thumb' => array(
					'class'=>'FileField',
				),
				'is_recommend' => array('checkBox'),
				'provider_id' => array('dropDownList', Yii::app()->enum->options('worker.providerAndCategory'), 
					// 如果是供应商，则不可见
					'visible'=>'Yii::app()->adminUser->role != AdminUser::ROLE_PROVIDER',
				),
				'title' => array(
					'textField', array('size'=>60)
				),
				'_with' => array(
					'cate.cate_id' => array(
						'class'=>'LinkageField', 
						'name'=>'pGoodsCate', 
						'fields'=>array('cate.cate_id'),
						'visible'=>'Yii::app()->adminUser->role == AdminUser::ROLE_PROVIDER',
					),
					'priceInfo.price_market',
					'priceInfo.price_dealer',
					'priceInfo.price_agent',
					'priceInfo.price_refer',				
				),
			),
			'profile' => array(
			),
		)
	),
	'_import' => array(
		array('*', 'actions.edit//*'),
	),
);